package com.itheima.day01.ZuoYe.ZuoYe3_6;

public class SUV extends Auto{
    private static double smallStandard = 4295;
    private static double mediumStandard = 5070;

    public SUV() {
    }

    public SUV(double price, double length, String brand) {
        super(price, length, brand);
    }

    public int compare(){
        if (getLength() < smallStandard ){
            return 1;
        }else if (getLength() > mediumStandard){
            return 2;
        }else{
            return 3;
        }
    }
}
